package com.zj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.filter.factory.AddRequestHeaderGatewayFilterFactory;
import org.springframework.cloud.gateway.handler.predicate.HeaderRoutePredicateFactory;

@SpringBootApplication
@EnableDiscoveryClient //开启服务注册发现
public class GateWayApp {
    public static void main(String[] args){
        SpringApplication.run(  GateWayApp.class, args);
    }
}